#ifndef _CONNECTIONCREATIONLISTENER_H_
#define _CONNECTIONCREATIONLISTENER_H_

class XMPPConnection;

/**
 * Implementors of this interface will be notified when a new {@link XMPPConnection}
 * has been created. The newly created connection will not be actually connected to
 * the server. Use {@link XMPPConnection#addConnectionCreationListener(ConnectionCreationListener)}
 * to add new listeners.
 *
 * @author Gaston Dombiak
 */
class ConnectionCreationListener {
public:
	virtual ~ConnectionCreationListener(){};
    /**
     * Notification that a new connection has been created. The new connection
     * will not yet be connected to the server.
     * 
     * @param connection the newly created connection. 
     */
    virtual void connectionCreated(XMPPConnection* connection) = 0;

};

#endif // -- _CONNECTIONCREATIONLISTENER_H_
